CMAKE_MINIMUM_REQUIRED(VERSION 3.0)

include_directories(${COMN_DIR}/include)

link_directories(${PROJECT_ROOT}/lib)

include_directories(${OPENSSL_INCLUDE_DIR})

add_definitions(-DMG_ENABLE_HTTP_STREAMING_MULTIPART)
#add_definitions(-DMG_ENABLE_SSL=1)

if (MSVC)
	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4267 /wd4244 /wd4018")
endif()

include_directories(include)

aux_source_directory(. SOURCES)
aux_source_directory(include SOURCES)
aux_source_directory(src SOURCES)

add_library(http STATIC ${SOURCES})

set_target_properties(http PROPERTIES DEBUG_POSTFIX "d")
set_property(TARGET http PROPERTY POSITION_INDEPENDENT_CODE TRUE)